package com.kaigejava.rulesengine.engine.core.typedefine;

/**
 * @author kaigejava
 */
public enum EngineCommand {
	/**
	 * product online
	 */
	PRODUCT_ONLINE(1, "product online"),
	/**
	 * product off-line
	 */
	PRODUCT_OFFLINE(2,"product off-line"),
	/**
	 * modify data format .
	 */
	PRODUCT_MODIFY_DATEFORMAT(3,"modify data format ."),
	/**
	 * device online
	 */
	DEVICE_ONLINE(4,"device online"),
	/**
	 * device offline
	 */
	DEVICE_OFFLINE(5,"device offline"),
	/**
	 * add core
	 */
	RULE_ADD(6,"add core"),
	/**
	 * delete a core
	 */
	RULE_DELETE(7,"delete a core"),
	/**
	 * update rue
	 */
	RULE_UPDATE(8,"update rue"),
	/**
	 * dummy default .
	 */
	DUMMY_DEFAULT(9,"dummy default .");
	
	private int type;
	private String msg;

	private EngineCommand(int type, String msg) {
		this.type = type;
		this.msg = msg;
	}

	public int getType() {
		return type;
	}

	public String getMsg() {
		return msg;
	}
}
